//
//  main.cpp
//  ex5_14
//
//  Created by baili on 2024/6/1.
//
using namespace std;
#include <iostream>

int main(int argc, const char * argv[]) {
    // insert code here...
    std::cout << "请输入要求的自字符串\n";
    
    char str[] = "Hello World";

//    cin >> str;
        int length = 0;
        for (int i = 0; str[i]!= '\0'; i++) {
            length++;
        }

        std::cout << "字符串 \"" << str << "\" 的实际长度为: " << length << std::endl;

    return 0;
}
